<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <?php if ($row['showrank']) { ?>
                    <tr>
                        <td><?= translate('GROUP') ?>:</td>
                        <td><?= $row['rolelist'] ?></td>
                    </tr>
                <?php } ?>
                <tr><td><?= translate('USERNAME') ?>:</td><td><input type="text" name="row[username]" id="username" size="25" autocomplete="off" value="<?= $row['username'] ?>" /></td></tr>
                <tr><td><?= translate('PASSWORD') ?>:</td><td><input type="text" name="row[password]" id="password" size="25" autocomplete="off" value="" /></td></tr>
                <tr><td><?= translate('GENDER') ?>:</td><td><input type="radio" name="row[sex]" value="1" <?= checkchecked(1, $row['sex']) ?>/> <?= translate('MALE') ?> &nbsp;&nbsp;<input type="radio" name="row[sex]" value="0" <?= checkchecked(0, $row['sex']) ?>/> <?= translate('FEMALE') ?></td></tr>
                <tr>
                    <td><?= translate('SYNC') ?>:</td>
                    <td><?= $arealist ?></td>
                </tr>
                <tr><td></td><td><input type="submit" value="<?= translate('SUBMIT') ?>" id="submit"/> <input type="reset" value="<?= translate('RESET') ?>" id="reset"/></td></tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#role_id").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#username").formValidator({empty: false, onshow: '<?= translate('C_ONLY_ONE') ?>'}).inputValidator({min: 3, onerrormin: '<?= translate('C_ONLY_ONE') ?>'});
                $("#password").formValidator({empty: true, onshow: '<?= translate('C_PWD_LEAVE_BLANK') ?>'});
            });
        </script>
    </body>
</html>